<#import "../../layout.html" as c>
<#import "../../list_layout.html" as list>
<#assign alertList = []/>
<@c.html title="节假日列表">
<!-- ================== 开始页面级CSS调用 ================== -->
<link href="${pluginsRoot}bootstrap-wizard/css/bwizard.min.css" rel="stylesheet"/>
<!-- 日历控件 -->
<link href="${pluginsRoot}/jquery.dtGrid/dependents/datePicker/skin/WdatePicker.css" rel="stylesheet"/>
<link href="${pluginsRoot}/jquery.dtGrid/dependents/datePicker/skin/default/datepicker.css" rel="stylesheet"/>
<link type="text/css" rel="stylesheet" href="${pluginsRoot}ueditor/themes/default/css/ueditor.css">

<!-- ================== 结束页面级CSS调用 ================== -->
<@list.html title="节假日列表" subTitle="节假日列表" alertList=alertList permi="sys:holiday:save" addBtn = true searchHint="">
    <@shiro.hasPermission name="sys:holiday:del">
    <input type="hidden" id="holidayDel" value="1"/>
    </@shiro.hasPermission>
    <@shiro.hasPermission name="sys:holiday:edit">
    <input type="hidden" id="holidayEdit" value="1"/>
</@shiro.hasPermission>
    <!-- 结束用户权限参数 -->
</@list.html>
<!-- ================== 开始新增资讯模态窗口 ================== -->
<div class="modal fade" id="addModal" tabindex="-1" role="dialog">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title"> 新增节日 <a class="btn btn-info btn-xs m-l-5" role="button" data-toggle="collapse" href="#OperationTips" aria-expanded="true" title="操作提示"><i class="fa fa-exclamation"></i> 提示 </a> </h4>
            </div>
            <div class="modal-body">
                <ul class="collapse in text-info p-b-10 p-l-15" role="tabpanel" id="OperationTips">
                    <li>日期输入格式：20180101，请谨慎</li>
                </ul>
                <form class="form-horizontal form-bordered p-0" action="${adminRoot}holiday/json/add" id="addForm" method="post" autocomplete="off" data-parsley-validate="true">
                    <div class="form-group">
                        <label class="control-label col-md-2 col-sm-3">日期<i class="f-s-14 text-danger">*</i>&nbsp;:</label>
                        <div class="col-md-9 col-sm-8">
                            <input type="text" name="holiday" class="form-control" placeholder="请输入节假日日期" maxlength="8" autocomplete="off" data-tip="tooltip" data-placement="auto" data-original-title="必填项，输入内容控制在1-8个字符。" data-parsley-required="true" data-parsley-length="[1, 8]"
                                   onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'0')}else{this.value=this.value.replace(/\D/g,'')}"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-2 col-sm-3">备注<i class="f-s-14 text-danger">*</i>&nbsp;:</label>
                        <div class="col-md-9 col-sm-8">
                            <input type="text" name="remark" class="form-control" placeholder="请输入备注" maxlength="50" autocomplete="off" data-tip="tooltip" data-placement="auto" data-original-title="必填项，输入内容控制在1-50个字符。"  data-parsley-required="true" data-parsley-length="[1, 50]"/>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer"><a href="javascript:;" class="btn btn-white" data-dismiss="modal">放弃操作</a><a href="javascript:;" class="btn btn-success" data-loading-text="Loading..." nc-ajax-submit-target="addForm" nc-ajax-submit>确认提交</a></div>
        </div>
    </div>
</div>
<!-- ================== 结束新增资讯模态窗口 ================== -->
<!-- ================== 开始编辑资讯模态窗口 ================== -->
<div class="modal fade" id="editModal" tabindex="-1" role="dialog">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title"> 编辑节日<a class="btn btn-info btn-xs m-l-5" role="button" data-toggle="collapse" href="#OperationTips" aria-expanded="true" title="操作提示"><i class="fa fa-exclamation"></i> 提示 </a> </h4>
            </div>
            <div class="modal-body">
                <ul class="collapse in text-info p-b-10 p-l-15" role="tabpanel" id="OperationTips1">
                    <li>日期输入格式：20180101，请谨慎</li>
                </ul>
                <form class="form-horizontal form-bordered p-0" action="${adminRoot}holiday/json/edit" id="editForm" method="post" autocomplete="off" data-parsley-validate="true">
                    <input type="hidden" name="id" value="">
                    <div class="form-group">
                        <label class="control-label col-md-2 col-sm-3">日期<i class="f-s-14 text-danger">*</i>&nbsp;:</label>
                        <div class="col-md-9 col-sm-8">
                            <input type="text" name="holiday" class="form-control" placeholder="请输入节假日日期" maxlength="8" autocomplete="off" data-tip="tooltip" data-placement="auto" data-original-title="必填项，输入内容控制在1-8个字符。" data-parsley-required="true" data-parsley-length="[1, 8]"
                                   onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'0')}else{this.value=this.value.replace(/\D/g,'')}"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-2 col-sm-3">备注<i class="f-s-14 text-danger">*</i>&nbsp;:</label>
                        <div class="col-md-9 col-sm-8">
                            <input type="text" name="remark" class="form-control" placeholder="请输入备注" maxlength="50" autocomplete="off" data-tip="tooltip" data-placement="auto" data-original-title="必填项，输入内容控制在1-50个字符。"  data-parsley-required="true" data-parsley-length="[1, 50]"/>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer"><a href="javascript:;" class="btn btn-white" data-dismiss="modal">放弃操作</a><a href="javascript:;" class="btn btn-success" data-loading-text="Loading..." nc-ajax-submit-target="editForm" nc-ajax-submit>确认提交</a></div>
        </div>
    </div>
</div>
<!-- ================== 结束编辑资讯模态窗口 ================== -->
<!-- ================== 开始页面级JavaScrip调用 ================== -->
<script src="${pluginsRoot}bootstrap-switch/bootstrap-switch.min.js"></script>
<!-- 富文本编辑器 -->
<script src="${pluginsRoot}ueditor/ueditor.config.js"></script>
<script src="${pluginsRoot}ueditor/ueditor.all.js"></script>
<script src="${pluginsRoot}ueditor/lang/zh-cn/zh-cn.js"></script>
<script src="${pluginsRoot}bootstrap-wizard/js/bwizard.js"></script>
<!-- 表单checkbox项 -->
<script src="${pluginsRoot}bootstrap-switch/bootstrap-switch.min.js"></script>
<!-- 日历控件 -->
<script src="${pluginsRoot}/jquery.dtGrid/dependents/datePicker/WdatePicker.js" defer="defer"></script>
<script src="${jsRoot}holiday/holiday.handle.js"></script>
<!-- ================== 结束页面级JavaScrip调用 ================== -->
</@c.html>